﻿using System.ServiceProcess;
using Synology.DS.Interface.Abstract;

namespace Synology.DS.Service
{
    partial class ProcessingService : ServiceBase
    {
        private readonly IProcessingServer _server;

        public ProcessingService(IProcessingServer server)
        {
            InitializeComponent();

            _server = server;
        }

        protected override void OnStart(string[] args)
        {
            _server.Start();
        }

        protected override void OnStop()
        {
            _server.Stop();
        }
    }
}
